﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="CancelTransactions.aspx.cs" Inherits="EWebsite.Admin.Feedback.CancelTransactions" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <span class="page-title">Các giao dịch đã bị hủy</span>
    <span class="lbl">
    <label>
    Chọn nhà kinh doanh</label>
    <asp:DropDownList ID="drpPartner" runat="server" AutoPostBack="True" 
            onselectedindexchanged="drpPartner_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:Button ID="btnView" runat="server" onclick="btnView_Click" Text="Xem" />
    </span>
    <br />
    <br />
    <h3 class="style1">
        <strong>Danh sách các giao dịch</strong></h3>
    <asp:GridView ID="grvFeedback" runat="server" AutoGenerateColumns="False" 
        EnableModelValidation="True" Width="100%" CellPadding="4" 
        ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
            <asp:TemplateField HeaderText="Thông tin giao dịch">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("TransID") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <strong>Transaction ID:</strong>
                    <asp:Label ID="lblTransID" runat="server" Text='<%# Bind("TransID") %>'></asp:Label>
                    <br />
                    <asp:HyperLink ID="HyperLink6" runat="server" 
                        NavigateUrl='<%# Eval("ID", "/Admin/Feedback/Detail.aspx?id={0}") %>' 
                        Text="Chi tiết"></asp:HyperLink>
                    <br />
                    <strong>SID:</strong>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("SID") %>'></asp:Label>
                    <br />
                    <strong>Ngày đăng ký giao dịch:</strong>
                    <asp:Label ID="Label7" runat="server" Text='<%# Bind("RegisterDate") %>'></asp:Label>
                    <br />
                    Ngày bắt đầu giao dịch:
                    <asp:Label ID="Label11" runat="server" Text='<%# Eval("BeginDate") %>'></asp:Label>
                    <br />
                    Ngày kết thúc giao dịch:
                    <asp:Label ID="Label10" runat="server" Text='<%# Eval("EndDate") %>'></asp:Label>
                    <br />
                </ItemTemplate>
                <ItemStyle Width="320px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Thông tin nhà kinh doanh">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <strong>Mã NKD</strong>:
                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("PartnerID") %>'></asp:Label>
                    <br />
                    <strong>Tên:</strong>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                    <br />
                    <strong>Email: </strong>
                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("Email") %>'></asp:Label>
                    <br />
                    <strong>Địa chỉ: </strong>
                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("Address") %>'></asp:Label>
                    <br />
                    <strong>Điện thoại:</strong>
                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("Tel") %>'></asp:Label>
                    <br />
                </ItemTemplate>
                <HeaderStyle Width="320px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Thông tin sản phẩm">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("PartnerID") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <div style="width:75px;float:left">
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ProductPhotoURl") %>' 
                        Width="75px" />
                    </div>
                    <div style="float:left;width:70%;margin-left:10px">
                        <strong>Mã SP:</strong>
                        <asp:Label ID="Label8" runat="server" Text='<%# Eval("ProductID") %>'></asp:Label>
                        <br />
                        <strong>Tên SP:</strong>
                        <asp:Label ID="Label9" runat="server" Text='<%# Eval("ProductName") %>'></asp:Label>
                    </div>
                    
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    </asp:GridView>
</asp:Content>
